package cn.edu.nwpu.warehousemanagement.util.msgQueue;

import cn.edu.nwpu.warehousemanagement.util.LogUtil;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 监听死信队列消息
 *
 * @author Loadstar
 * @version 1.0
 */
@Component
public class DeadLetterConsumer {
    @RabbitListener(queues = "#{deadLetterQueue}")
    public void onMessage(String message) {
        LogUtil.error(DeadLetterConsumer.class, "收到预测失败消息: {}", message);
    }
}
